package com.example.xwcommon.service;

import com.example.xwcommon.entity.Admin;
import com.example.xwcommon.entity.Comment;
import com.example.xwcommon.entity.User;
import com.example.xwcommon.entity.Weibo;
import com.example.xwcommon.vo.Response;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

public interface AdminService {
    @RequestMapping("/admin/login")
    Response<Admin> login(@RequestParam("loginName")String loginName, @RequestParam("loginPwd") String loginPwd);
    @RequestMapping("/admin/reg")
    Response<Admin> reg(@RequestBody Admin admin);
    @RequestMapping("/admin/banUser")
    Response<User> banUser(@RequestParam("userId")Integer userId);
    @RequestMapping("/admin/updateWeiboState")
    Response<Weibo> updateWeiboState(@RequestParam("weiboId")Integer weiboId, @RequestParam("state")Integer state);
    @RequestMapping("/admin/updateCommentState")
    Response<Comment> updateCommentState(@RequestParam("commentId")Integer commentId,@RequestParam("state") Integer state);
}
